import React from 'react'
 class Home extends React.Component{
     componentDidMount(){
         console.log(this,'详情页');
     }
    render(){
            return (<div>
                <h1>详情页</h1>
                <div>
                    <button onClick={()=>this.props.history.go(-1)}>返回</button>
                </div>
                <div>
                    <button onClick={()=>this.props.history.goBack()}>goBack</button>
                </div>
                <h1>获取的动态路由参数是----{this.props.match.params.id}</h1>
            </div>)
        }
}
 export default Home